<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>List user</title>
<link href="../../public/css/jquery.treeTable.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> 
<script type="text/javascript" src="../../public/js/jquery.treeTable.js"></script>
<script>
   $(document).ready(function(){
     $("#tree").treeTable();
      
   }) ;    
</script>


</head>

<body>
    <div id="wrapper" title="test">
    <?php include "header.phtml"; ?>
  <h1><?php echo $this->escape($this->title);?></h1>
  <h2><?php echo $this->escape($this->description);?></h2>
  <a href="register">Register</a>
  <table  border="1">
    <tr>
	  <th>ID</th>
	  <th>User Name</th>	  
	  <th>First Name</th>	  
	  <th>Last Name</th>	  
	  <th>Action</th>	  
   </tr>
    
    <? $datas = $this->datas;
     for($i = 0; $i< count($datas);$i++){ ?>
   <tr>
       <td><?php echo $datas[$i]['id']?></td>
       <td><?php echo $datas[$i]['user_name']?></td>
       <td><?php echo $datas[$i]['first_name']?></td>
       <td><?php echo $datas[$i]['last_name'] ?></td>
       <td>
           <a href="edit/id/<?php echo $datas[$i]['id'] ?>">Edit</a>
           <a href="del/id/<?php echo $datas[$i]['id'] ?>">Delete</a>
       </td>
   </tr>
       
   
   
   <?php } ?>
  </table>
  <table id="tree">
    <tr id="node-1">
         <td>Parent</td>
    </tr>
    <tr id="node-1-1" class="child-of-node-1">
            <td>Child</td>
    </tr>
    <tr id="node-1-1-1" class="child-of-node-1-1">
            <td>Child</td>
    </tr>
      <tr id="node-1-1-1-1" class="child-of-node-1-1-1">
          <td>Child</td>
      </tr>
    <tr id="node-2">
         <td>Parent2</td>
    </tr>
    <tr id="node-2-1" class="child-of-node-2">
            <td>Child</td>
    </tr>
   
</table>
  <p>click to hide me</p>
  <input type="button" id="test" value="click">
   
 <?php include 'footer.phtml'; ?>
  </div> <!-- end wrapper -->
</body>
</html>

 
